require 'test/unit'
require 'lib/smppclient/pdu/ton'

class TestTon < MiniTest::Unit::TestCase

  include SmppClient::Pdu

  def test_values
    assert_equal(0b00000000, Ton::UNKNOWN)
    assert_equal(0b00000001, Ton::INTERNATIONAL)
    assert_equal(0b00000010, Ton::NATIONAL)
    assert_equal(0b00000011, Ton::NETWORK_SPECIFIC)
    assert_equal(0b00000100, Ton::SUBSCRIBER_NUMBER)
    assert_equal(0b00000101, Ton::ALPHANUMERIC)
    assert_equal(0b00000110, Ton::ABBREVIATED)
  end

end